﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

using ik.DB;
using ik.Functions;


namespace SQLQuery
{
    public partial class frmDatabaseConnection : Form
    {
        clDB clDb = null;
        clFunctions clF = new clFunctions();

        public frmDatabaseConnection()
        {
            InitializeComponent();
        }

        public object GetConnection()
        {
            return clDb;
        }

        private void cmdConnect_Click(object sender, EventArgs e)
        {
            //clDb = new ik.DB.Oracle.clDbORA();
            //((ik.DB.Oracle.clDbORA)clDb).GetCnn("gestaoparcerias", "cDRyYzNyMTQ1NQ==", "gestaoparchmg", 0);
            MessageBox.Show("use os botões gigantes...");
        }

        private void button1_Click(object sender, EventArgs e)
        {
            clDb = new ik.DB.SQLServer.clDbSQL();
            ((ik.DB.SQLServer.clDbSQL)clDb).GetCnn("sa", "amFtYW50YTMy", @"PCTV\SQLEXPRESS", "diskinfo", "", 0);
            //"jamanta32"
            this.Close();
        }

        private void button2_Click(object sender, EventArgs e)
        {
            clDb = new ik.DB.SQLServer.clDbSQL();
            ((ik.DB.SQLServer.clDbSQL)clDb).GetCnn("todos", "MTAyMDMw", @"note03\x64", "cat_2011_01", "", 0);
            this.Close();
        }
    }
}
